package binary;

public class Demo03 {
    public static void main(String[] args) {
        /*
         *补码
         */
        int n1 = 0b01111111111111111111111111111111;
        System.out.println(n1);
        int max = Integer.MAX_VALUE;
        System.out.println(max);
        int n2 = 0b10000000000000000000000000000000;
        System.out.println(n2);
        int min = Integer.MIN_VALUE;
        System.out.println(min);
        int n3 = 0b11111111111111111111111111111111;
        System.out.println(n3);//-1



    /*    System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-1));
        System.out.println(Long.toBinaryString(-1L));*/

    }
}
